home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-11-13 | 4.3 KB | 123 lines | [TEXT/ttxt] |
- Read ME first!!
- -------------------------------------------------------------------------
- Ok, what is this stuff?
-
- Years ago, I was a mainframe programmer - got tired of Cobol and switched to
- database & 4th generation languages. After I tired of that, I started
- programming on the Mac. I had to teach myself both the Macintosh Toolbox and
- "C" at the same time. One of my primary sources for programming instruction
- was other people's code - I constantly cruised the forums on CompuServe and
- Genie and downloaded anything that said "source" in the description.
-
- This is a small gift in return. Hopefully, someone, somewhere will learn
- something from this collection of odds and ends.
-
- If you find this stuff useful, have questions, find bugs or have enhancement
- ideas, drop me a note via email. I will probably continue to enhance this
- package, so I plan on keeping a list of people to notify when I post a new
- release.
-
- Please read the "Conditions for use…" document for information about using
- these CDEFs or source code for the CDEFs.
-
- Jim Stout
- November 1995
-
- I can be reached electronically at:
-
- Internet : JimS@WRQ.COM (work hours, PST)
- CompuServe : 73240,2052 (weekly or so)
- AOL : JasG (weekly or so)
- eWorld : Jim Stout (weekly or so)
- -------------------------------------------------------------------------
-
- The CDEFs and source code are Copyright ©1991-1995 James G. Stout
-
- Use of the CDEFs and source code is detailed in the accompanying "Conditions for
- use" document.
-
- The utility code in this package may be incorporated in any freeware, shareware,
- commercial or other software package, without restrictions.
-
- ------------------------------------------------------------------------------
- Accompanying this note, you should find:
-
- 1. A collection of code resources. Just paste them into the .rsrc files
- for your programming projects and use them.
- (the CDEFs can be found in: "CDEF Source ƒ:resources:xDEF.rsrc")
-
- For many details about the CDEFs, how to use them and some programming tips;
- read the "About CDEFs" file.
-
- 2. The projects and 'C' source to build all of the CDEFs. Projects for Think 7,
- Symantec 8.0.3, Metrowerks (CW7) and an MPW makefile are included.
-
- 3. A demo program project to show the use of the CDEFs.
-
- 4. A sample of source that demonstrates one way to debug a simple CDEF. See the
- items with "test3D" in their name.
-
- 5. Some utility routines to assist in writing dialog routines.
- They are:
-
- - dialogAssist.c
- - dimText.c
- - movableModal.c
- - panelAssist.c
- - TogLib.c
-
- and matching header files.
-
- Here is what the utility routines do - the code is fairly well commented, so
- study the code itself.
-
- dialogAssist.c/.h
- -----------------
- I simply got tired of writing pairs of GetDItem()/SetDItem() and similar calls.
- This file is a collection of routines that make one call replacements for
- handling controls, keys or the mouse in dialogs.
-
- Also, there are some utility routines to do some special dialog handling - like
- limiting input length, numeric input, checking for command or option keys or a
- "exit" key (enter or escape).
-
- There are lots of handy routines in this file, study it to see if there is
- anything you can use.
-
- dimText.c/.h
- ------------
-
- These routines were written by JWWalker. They are used by some of the
- dialogAssist routines.
-
- To use these routines, do the following:
-
- 1. Create your dialog.
- 2. Call initDimText(yourDialogPtr) before calling ModalDialog.
- 3. Call daDimOne() to dim a text item (edit or static).
- 4. Just before calling DisposDialog(), call disposeDimText().
-
- Note that if you use AppendDITL or ShortenDITL (as in the tab Panel demo),
- there are extra calls to be used. See dialogDemo.c for an example.
-
- movableModal.c/.h
- -----------------
- A set of routines to assist in implementing "Movable Modal" dialogs. Simply
- substitute a call to "ModalDialog" with a call to "movableModalDialog". Two
- cautions:
-
- 1. Use the proper window definition in your dialog resource.
-
- 2. There are several external routines that will be called by the movable
- modal routines. See the movableModal.c file for details.
-
- panelAssist.c/.h
- ----------------
- Two routine to help in implementing tabPanel dialogs. See the file "About
- CDEFs".
-
- TogLib.c/.h
- -----------
- Routines to assist in handling "Tog" buttons. See the file "About CDEFs".
-
- ------------------------------------------------------------------------------